//
//  DFCommand.h
//  dfCommandBuilder
//
//  Created by Tom Booth on 31/05/2009.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "DFParameter.h"


@interface DFCommand : NSObject {

	BOOL returnsRows;
	BOOL createsRows;
	NSString *name;
	NSString *description;
	
	NSMutableArray *parameters;
	NSMutableArray *returnParameters;
	NSMutableArray *rowParameters;
}

@property BOOL returnsRows;
@property BOOL createsRows;
@property (copy, readwrite) NSString *name;
@property (copy, readwrite) NSString *description;


- (id) initWithName:(NSString*)name;


- (void) addParameter:(DFParameter*)parameter;
- (void) addReturnParameter:(DFParameter*)parameter;
- (void) addRowParameter:(DFParameter*)parameter;

- (NSArray*) getParameters;
- (NSArray*) getReturnParameters;
- (NSArray*) getRowParameters;

- (BOOL) isEqual:(id) item;

@end
